/**
 * Created by Administrator on 2022/8/17.
 */
public class Student {
    public String name;
    public String gender;
    public int age;
    private static String classRoom = "2131";// 静态成员变量可以直接通过类名访问

    public Student(String name,String gender,int age) {
        this.name = name;
        this.gender = gender;
        this.age = age;
    }

    public static String getClassRoom() {
        return classRoom;
    }
}

class Test {
    public static void main(String[] args) {
        Student s1 = new Student("阿紫","女",19);
        System.out.println(Student.getClassRoom());
    }
}